from django.urls import path
from ninja import NinjaAPI
from .api.routers import router

api = NinjaAPI(
    title="调度员服务API",
    version="1.0.1",
    docs_url="/docs/",  # 文档地址
    csrf=True  # 启用CSRF保护
)

api.add_router("/", router)

urlpatterns = [
    path("", api.urls),
]